<HTML><HEAD><TITLE>errno_id(+N, -Message)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">Obsolete</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>errno_id(+N, -Message)</H1>
Message is bound to the message string that corresponds to the UNIX message
for a system call error when the UNIX errno has the value N.


<DL>
<DT><EM>N</EM></DT>
<DD>Positive integer.
</DD>
<DT><EM>Message</EM></DT>
<DD>Variable.
</DD>
</DL>
<H3>This built-in predicate is obsolete!</H3>
<H2>Description</H2>
   This predicate unifies Message with the string that corresponds to the
   UNIX message for a system call error when errno has the value N.

<P>
   The errors are system dependent.  In SunOS 4.0, there are 89 defined
   UNIX system call errors.

<P>

<H3>Modes and Determinism</H3><UL>
<LI>errno_id(+, -) is det
</UL>
<H3>Exceptions</H3>
<DL>
<DT><EM>(4) instantiation fault </EM>
<DD>N is not instantiated.
<DT><EM>(5) type error </EM>
<DD>N is instantiated, but not to an integer.
<DT><EM>(5) type error </EM>
<DD>Message is instantiated.
</DL>
<H2>Examples</H2>
<PRE>
Success:
        % the following sample errors are for SunOS 4.0
      errno_id(1,M).  (gives M = "Not owner").
      errno_id(2,M).  (gives M = "No such file or directory").
      errno_id(3,M).  (gives M = "No such process").
      errno_id(4,M).  (gives M = "Interrupted system call").
      errno_id(5,M).  (gives M = "I/O error").
      errno_id(6,M).  (gives M = "No such device or address").
      errno_id(89,M). (gives M = "Remote address changed").
      errno_id(90,M). (gives M = "Unknown system error").
        % the latter occurs for all errors greater than 89.
Error:
      errno_id(N,M).         (Error 4).
      errno_id(1.0,M).       (Error 5).
      errno_id(1,"message"). (Error 5).


</PRE>
<H2>See Also</H2>
<A HREF="../../kernel/opsys/errno_id-1.html">errno_id / 1</A>
</BODY></HTML>
